﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TongHopBookFlightDAO.DAO
{
    public class ChiTietDiaDiemDAO
    {
        public static List<ChiTietDiaDiem> SelectByAirLineID(int hangHangKhongID)
        {
            List<ChiTietDiaDiem> listObjResults = new List<ChiTietDiaDiem>();
            try
            {
                BookFlightDataContext context = new BookFlightDataContext();
                listObjResults = context.ChiTietDiaDiems.Where(p => p.HangHangKhongID == hangHangKhongID).ToList();

            }
            catch { }
            return listObjResults;
        }
    }
}
